package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ResparamappingDao;
import com.xy.gateway.model.Resparamapping;
import com.xy.gateway.service.ResparamappingService;

@Service
@Transactional
public class ResparamappingServiceImpl extends BaseServiceImpl<Resparamapping> implements
		ResparamappingService {
	private ResparamappingDao resparamappingDao;

	public ResparamappingServiceImpl(ResparamappingDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.resparamappingDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return resparamappingDao.checkExist("Resparamapping", paraName, paraValue);
	}

	@Override
	public List<Resparamapping> getResparamapping(Map<String, Object> map) {
		return resparamappingDao.getResparamapping(map);
	}
	@Override
	public Pagination getResparamappingByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return resparamappingDao.getResparamappingByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Resparamapping save(Resparamapping resparamapping) {return super.save(resparamapping);}
}